﻿/********************************************************************************
** @ Date:2025/08/04
** @ Author: Gaojia
** @ Description:
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef CHeader_H
#define CHeader_H
#include <windows.h>

#define A2T QString::fromLocal8Bit
#define FL  __FILE__+(","+QString::number(__LINE__)) 

#define _Q(x) (x).toLocal8Bit().data()                  //QString中含有中文转char * 需要使用toLocal8Bit().data() 
#define _QStr2CharStr(x) x.toStdString().c_str()        //将QString 转化成 char* 字符串
#define _QSClearPoint(x)  QString::number(x.toDouble(), 'f', 0).toStdString().c_str()        //将QString 转化成 char* 字符串 同时去除对应的小数位
#define _QNumStr2UInt(x) (unsigned int)x.toDouble()     //将QString 数值转化成unsigned int
#define _QNumStr2Int(x) (int)x.toDouble()               //将QString 数值转化
extern QString setUiStyle(QString sName);
extern bool setNativeTitleBar(HWND hwnd, COLORREF color);
extern bool setUiStyle(QWidget *pWidget,QString sName);
class CHeader
{
public:
	CHeader()
	{

	};
	~CHeader()
	{

	};
};
#endif


